package com.itheima.provider.controller;

import com.itheima.provider.domain.Googs;
import com.itheima.provider.Service.GoogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/text")
public class GoogsController {
    @Autowired
    private GoogsService googsService;
    @GetMapping("/xxx/{id}")
    public Googs findOne(@PathVariable("id") Integer id){
      return   googsService.findOne(id);

    }


}
